package com.wangp.mywrite.s_netty.nio.ch3.nonblock_mode;

import java.io.IOException;
import java.net.InetSocketAddress;
import java.nio.channels.SocketChannel;
import java.nio.charset.StandardCharsets;

/**
 * @description: TODO
 * @author tooStronger
 * @date 2023/3/16
 */
public class Client {

    public static void main(String[] args) throws IOException {
        SocketChannel sc = SocketChannel.open();
        sc.connect(new InetSocketAddress("localhost",8080));
        System.out.println("waiting...");
        // debug 运行： sc.write(StandardCharsets.UTF_8.encode("hello!"))
    }
}
